package com.jiyun.fanxiao.controller;

import com.jiyun.fanxiao.service.FanxiaoService;
import com.jiyun.pojo.baobei.BaoBei;
import com.jiyun.pojo.result.ResultVo;
import com.jiyun.pojo.school.Shool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 文件名:FanxiaoController
 * 创建者: 闫俊涛
 * 创建时间:2022/6/26 8:29
 * 描述:这是一个实例
 */
@RestController
@RequestMapping("fan")
public class FanxiaoController {
    @Autowired
    private FanxiaoService fanxiaoService;
    //  返校报备添加
    @PostMapping ("save")
    public ResultVo save(@RequestBody Shool shool){
        return  fanxiaoService.insert(shool);
    }
}
